package com.example.demo.service;

import org.springframework.stereotype.Component;

@Component
public class MyService {
    public String greet(String name) {
        return "你好, " + name + "!";
    }

    public int calculate(int a, int b) {
        return a + b;
    }
}